<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@include file="/checkLogin.jsp" %>
<%-- <%
  String name=request.getParameter("userName");
%> --%>
<%-- <a href="logout.jsp">退出</a>
<%
	out.print(session.getId());
    String name=(String)session.getAttribute("USER_LOGIN");
	if(name==null){
		//response.sendRedirect("userLogin.jsp");
		out.print("<script>alert('您还没有登录,不能访问');location.replace('userLogin.jsp');</script>");
		return;
	}
%>
<h1 style="font-size:120px;color:red;"><%=name%>,欢迎你的到来</h1>
 --%>
<div>
 <ul>
  <li><a href="<%=request.getContextPath()%>/studentServlet" target="mainFrame">学生管理</a></li>
  <li><a href="<%=request.getContextPath()%>/GradeServlet" target="mainFrame">年级管理</a></li>
 </ul>
</div>
<iframe name="mainFrame" width="100%" height="600px" frameborder="0"></iframe>
</body>
</html>